#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class PageList : Business.BusinessBase<PageList, int>
	{
		#region Fields and Properties

		private String pageURI = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PageURI
		{
			get { return pageURI; }
			set
			{
				if (value != pageURI)
				{
					MarkChanged("PageURI");
					pageURI = value;
				}
			}
		}

		private String pageName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String PageName
		{
			get { return pageName; }
			set
			{
				if (value != pageName)
				{
					MarkChanged("PageName");
					pageName = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public PageList()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override PageList DataSelect(int id)
		{
			return Services.DALService.PageListService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.PageListService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.PageListService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.PageListService.Delete(this);
		}

		#endregion Base overrides
	}
}
